import startSearchModel from "@/config/startSearchModel";

export default () => {
    return {
        submitText: '修改',
        size: 'default',
        labelWidth: 120,
        searchLabelWidth: 120,
        index: true,
        menuAlign: 'center',
        menuPosition: "right",
        searchIndex: 2,
        searchSpan:8,
        searchMenuSpan: 6,
        searchIcon: true,
        addBtn: false,
        editBtn: false,
        delBtn: false,
        menu: false,
        permissionBtn: {
            addBtn: 'sys:sysNoticeBrowse:add',
            editBtn: 'sys:sysNoticeBrowse:edit',
            viewBtn: 'sys:sysNoticeBrowse:info',
            delBtn: 'sys:sysNoticeBrowse:delete',
        },
        column: [
            {
                "addDisplay": false,
                "editDisplay": false,
                "label": "主键",
                "prop": "id",
                "hide": true,
                "type": "input"
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "通知id",
                "prop": "noticeId",
                "showColumn": true,
                hide: true,
                "type": "input"
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "通知公告",
                "prop": "noticeTitle",
                "showColumn": true,
                "type": "input"
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "浏览人",
                "prop": "browseUserNickName",
                "showColumn": true,
                "type": "input"
            },
            {
                "addDisplay": true,
                "editDisplay": true,
                "label": "最后浏览时间",
                search: true,
                searchRange: true,
                searchModel: startSearchModel.BETWEEN,

                "prop": "lastBrowseTime",
                "showColumn": true,
                "type": "datetime"
            },
            {
                "addDisplay": false,
                "editDisplay": false,
                "label": "创建人",
                "prop": "createBy",
                "hide": true,
                "type": "input"
            },
            {
                "addDisplay": false,
                "editDisplay": false,
                "label": "创建时间",
                "prop": "createTime",
                "hide": true,
                "type": "datetime"
            },
            {
                "addDisplay": false,
                "editDisplay": false,
                "label": "修改人",
                "prop": "updateBy",
                "hide": true,
                "type": "input"
            },
            {
                "addDisplay": false,
                "editDisplay": false,
                "label": "修改时间",
                "prop": "updateTime",
                "hide": true,
                "type": "datetime"
            }
        ]

    }
}
